package com.dragon.graduation.teacher.mapper;

import com.dragon.graduation.teacher.entity.TeacherEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 教师表 Mapper 接口
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:24:33
 */
@Mapper
public interface TeacherMapper extends BaseMapper<TeacherEntity> {

    @Select("select * from db_teacher where user_id = #{id}")
    TeacherEntity selectByUserId(Integer id);
}
